package cn.stylefeng.guns.modular.hp.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 首页栏目表
 * </p>
 *
 * @author xzqiang
 * @date 2018-12-08
 */
@TableName("hp_menu_info")
public class MenuInfo extends Model<MenuInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	/**
	 * 栏目名称
	 */
	private String name;
	/**
	 * 栏目别名，简称等
	 */
	private String code;
	/**
	 * 父栏目id
	 */
	private String parentid;
	/**
	 * 栏目类型 top-顶级菜单 left-左侧菜单
	 */
	private String type;
	/**
	 * 点击跳转类型，list-跳转到列表页，details-跳转到详情页，home-跳转到首页，listbtn-无跳转，仅作展示下拉列表
	 */
	private String jumpType;
	/**
	 * 链接地址
	 */
	private String linkUrl;
	/**
	 * 页面内容ID
	 */
	private String pageContentId;
	/**
	 * 是否问本站地址
	 */
	private Integer siteFlag;
	/**
	 * 排序
	 */
	private Integer pri;
	/**
	 * 简介
	 */
	private String desc;
	/**
	 * 创建时间
	 */
	private Date createdTime;
	/**
	 * 创建人
	 */
	private Integer creater;
	/**
	 * 乐观锁保留字段
	 */
	private Integer version;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public String getPageContentId() {
		return pageContentId;
	}

	public void setPageContentId(String pageContentId) {
		this.pageContentId = pageContentId;
	}

	public Integer getSiteFlag() {
		return siteFlag;
	}

	public void setSiteFlag(Integer siteFlag) {
		this.siteFlag = siteFlag;
	}

	public Integer getPri() {
		return pri;
	}

	public void setPri(Integer pri) {
		this.pri = pri;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getCode() { return code; }

	public void setCode(String code) { this.code = code; }

	public String getParentid() { return parentid; }

	public void setParentid(String parentid) { this.parentid = parentid; }

	public String getJumpType() { return jumpType; }

	public void setJumpType(String jumpType) { this.jumpType = jumpType; }

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "menuInfo{" + "id=" + id + ", name=" + name + ", type=" + type + ", linkUrl=" + linkUrl
				+ ", pageContentId=" + pageContentId == null ? "null"
						: pageContentId + ", siteFlag=" + siteFlag + ", createdTime=" + createdTime + ", creater="
								+ creater + ", version=" + version == null ? "null" : version + "}";
	}
}
